###
# kubernetes system config
#
# The following values are used to configure the kubernetes-apiserver
#

# The address on the local server to listen to.
KUBE_API_ADDRESS="--address=0.0.0.0"

# The port on the local server to listen on.
KUBE_API_PORT="--port=8080"

# How the replication controller and scheduler find the apiserver
KUBE_MASTER="--master={{ hostvars[groups['masters'][0]][ansible_routing_network_interface]['ipv4']['address'] }}:8080"

# Comma seperated list of minions
KUBELET_ADDRESSES="--machines={% set comma = joiner(",") %}
                              {%- for host in groups['minions'] -%}
                                {{ comma() }}{{ hostvars[host][ansible_routing_network_interface]['ipv4']['address'] }}
                              {%- endfor %}"
  
# Port minions listen on
KUBELET_PORT="--kubelet_port=10250"

# Address range to use for services
KUBE_SERVICE_ADDRESSES="--portal_net={{ kube_service_addresses }}"

# Add you own!
KUBE_API_ARGS=""
